﻿// -------------------------------------------------------------------------
//    @FileName         :    NFCityPlayerBattleExt.cpp
//    @Author           :    Gao.Yi
//    @Date             :    2025-09-15
//    @Email			:    445267987@qq.com
//    @Module           :    NFCityPlayerBattleExt
//    @Desc             :
//
// -------------------------------------------------------------------------

#include "NFCityPlayerBattleExt.h"

NFCityPlayerBattleExt::NFCityPlayerBattleExt()
{
    if (EN_OBJ_MODE_INIT == NFShmMgr::Instance()->GetCreateMode())
    {
        CreateInit();
    }
    else
    {
        ResumeInit();
    }
}

NFCityPlayerBattleExt::~NFCityPlayerBattleExt()
{
}

int NFCityPlayerBattleExt::CreateInit()
{
    m_bIsInBattle = false;
    return 0;
}

int NFCityPlayerBattleExt::ResumeInit()
{
    return 0;
}

int NFCityPlayerBattleExt::Init(const proto_ff::CityRolePhantomTroupeInfo* pData)
{
    CHECK_NULL(0, pData);
    m_stTroupeData.FromPb(*pData);
    return 0;
}

bool NFCityPlayerBattleExt::IsTroupeHide(int iNpcObjId)
{
    return false;
}
